#include "../inc/ClientSub.hpp"
#include <iostream>
#include <unistd.h>

int main() {
  ClientSub sub;
  sub.funcCameraOffline = [](std::string UUID) {
    std::cout << "CameraOffline: " << UUID << std::endl;
  };
  sub.funcMessage = [](std::string msg) {
    std::cout << "Message: " << msg << std::endl;
  };
  sub.funcStartShot = [](std::string UUID) {
    std::cout << "StartShot: " << UUID << std::endl;
  };
  sub.funcStopShot = [](std::string UUID) {
    std::cout << "StopShot: " << UUID << std::endl;
  };
  sub.Boot("tcp://127.0.0.1:15000");

  while (sleep(10) == 0) ;
}
